﻿<phone:PhoneApplicationPage 
    x:Class="RemoteGamePad.MainPanorama"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    ApplicationBar="{StaticResource MainAppBar}">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot">
        <controls:Panorama Title="Remote Gamepad ">

            <!--Panorama item one-->
            <controls:PanoramaItem Header="Accueil">
                <Grid>
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="21,51,0,0" Name="textBlock1" Text="Computer" VerticalAlignment="Top" />
                    <Button Content="Go" Height="73" HorizontalAlignment="Right" Margin="0,89,25,0" Name="goButton" VerticalAlignment="Top" Width="94" Click="GoButton_Click" />
                    <TextBox Height="71" HorizontalAlignment="Left" Margin="19,89,0,0" Name="ipAdressTextBlock" Text="127.0.0.1" VerticalAlignment="Top" Width="274" />
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item two-->
            <controls:PanoramaItem Header="Services">
                <Grid>
                    <HyperlinkButton Content="Gamepad" Height="74" HorizontalAlignment="Left" Margin="34,82,0,0" Name="hyperlinkButton1" VerticalAlignment="Top" Width="337" Click="GamepadButton_Click" />
                    <HyperlinkButton Content="Mouse/Keyboard" Height="76" HorizontalAlignment="Left" Margin="97,224,0,0" Name="hyperlinkButton2" VerticalAlignment="Top" Width="257" Click="hyperlinkButton2_Click" />
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>

    <!--Panorama-based applications should not show an ApplicationBar-->

</phone:PhoneApplicationPage>